var echarts = require('echarts');
export default function (data) { // 1 series
    return {
        Option: {
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'cross',
                    crossStyle: {
                        color: '#999'
                    }
                }
            },
            legend: {
                data: ['应用行业','所有模型', '开发模型','上架模型', '购买模型']
            },
            xAxis: [
                {
                    type: 'category',
                    name: '月份',
                    data: ['2018.01', '2018.02', '2018.03', '2018.04', '2018.05', '2018.06', '2018.07', '2018.08', '2018.09', '2018.10'],
                    axisPointer: {
                        type: 'shadow'
                    }
                }
            ],
            yAxis: [
                {
                    type: 'value',
                    name: '',
                    min: 0,
                    max: 6000,
                    interval: 1000,
                    axisLabel: {
                        formatter: '{value}'
                    }
                }
            ],
            series: [
                {
                    name: '应用行业',
                    type: 'bar',
                    yAxisIndex: 0,
                    barWidth: 40,
                    itemStyle: {
                        normal: {
                            color: '#0099ff'
                        }
                    },
                    data: [2000, 2400, 3200, 4000, 4120, 3400, 1200, 3500, 5300, 4500]
                },
                {
                    name: '所有模型',
                    type: 'line',
                    itemStyle: {
                        normal: {
                            color: '#ffbd39'
                        }
                    },
                    yAxisIndex: 0,
                    data: [1200, 5600, 4400, 2500,  2400, 3200, 4000, 4120, 2200, 3200, 3200]
                },
                {
                    name: '开发模型',
                    type: 'line',
                    itemStyle: {
                        normal: {
                            color: '#f57caf'
                        }
                    },
                    yAxisIndex: 0,
                    data: [3400, 3600, 4000, 2300, 3400, 4100, 1900, 5000, 3000, 4000]
                },

                {
                    name: '上架模型',
                    type: 'line',
                    itemStyle: {
                        normal: {
                            color: '#ff6565'
                        }
                    },
                    yAxisIndex: 0,
                    data: [1400, 1400, 1400, 2500, 1400, 1400, 2100, 1400, 1400, 4200]
                },

                {
                    name: '购买模型',
                    type: 'line',
                    itemStyle: {
                        normal: {
                            color: '#61d227'
                        }
                    },
                    yAxisIndex: 0,
                    data: [2100, 2100, 4400, 2100, 3600, 4300, 2100, 2100, 3200, 2100]
                }
            ]
        }
    }
}
